package com.android.cl.coludtf.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.cl.coludtf.R;
import com.android.cl.coludtf.activity.Tenant;
import com.android.cl.coludtf.activity.base.BaseFragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class Message extends BaseFragment {
    @BindView(R.id.Gv_Item)
    GridView GvItem;
    @BindView(R.id.Txt_Title)
    TextView TxtTitle;
    @BindView(R.id.Img_Add)
    ImageView ImgAdd;
    @BindView(R.id.Img_yun)
    ImageView ImgYun;
    @BindView(R.id.Img_Find)
    ImageView ImgFind;
    @BindView(R.id.LL_OtherTen)
    LinearLayout LLOtherTen;
    @BindView(R.id.LL_Schedule)
    LinearLayout LLSchedule;
    @BindView(R.id.LL_Deal)
    LinearLayout LLDeal;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_message, container, false);
        ButterKnife.bind(this, v);
        initView();

        initData();
        return v;
    }

    private void initView() {
    }

    private void initData() {
        //查询消息后，显示未读数量

        TxtTitle.setText("消息(3)");
    }

    @OnClick({R.id.Txt_Title, R.id.Img_Add, R.id.Img_yun, R.id.Img_Find, R.id.LL_OtherTen, R.id.LL_Schedule, R.id.LL_Deal})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.Txt_Title:
                break;
            case R.id.Img_Add:
                break;
            case R.id.Img_yun:
                break;
            case R.id.Img_Find:
                break;
            case R.id.LL_OtherTen:
                Intent intent = new Intent();
                intent.setClass(this.getActivity(), Tenant.class);
                startActivity(intent);
                break;
            case R.id.LL_Schedule:
                break;
            case R.id.LL_Deal:
                break;
        }
    }


}
